#include<bits/stdc++.h>
using namespace std;
const int N=200005;
int T,n,num[N],C[N],color[N];
int main()
{
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    cin>>T;
    for(int t=1;t<=T;t++){
        cout<<0<<endl;
    }
    return 0;
}
